package com.hundredapp.oa.domain;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name ="oa_role_service")
public class OaRoleService implements java.io.Serializable {

	private Integer id;
	private Integer roleId ;
	private Integer serviceId ;
	private Integer permission ;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "role_id")
	public Integer getRoleId(){
		return this.roleId;
	}

	public void setRoleId(Integer roleId){
		this.roleId = roleId;
	}

	@Column(name = "service_id")
	public Integer getServiceId(){
		return this.serviceId;
	}

	public void setServiceId(Integer serviceId){
		this.serviceId = serviceId;
	}

	@Column(name = "permission")
	public Integer getPermission(){
		return this.permission;
	}

	public void setPermission(Integer permission){
		this.permission = permission;
	}

}
